package com.whw.fy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whw.fy.config.IgnoreSwaggerParameter;import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;

@ApiModel(value = "com-whw-fy-entity-PurchaseCourseRecords")
@Data
public class PurchaseCourseRecords {
    /**
     * 购买课程记录id
     */
    @ApiModelProperty(value = "购买课程记录id")
    private Integer purchaseId;

    /**
     * 缴费记录id
     */
    @ApiModelProperty(value = "缴费记录id")
    private String payId;

    /**
     * 学生id
     */
    @ApiModelProperty(value = "学生id")
    private Integer studentId;

    /**
     * 购买课程id
     */
    @ApiModelProperty(value = "购买课程id")
    private Integer lessonId;

    /**
     * 购买课程次数
     */
    @ApiModelProperty(value = "购买课程次数")
    private Integer purchaseTimes;

    /**
     * 上课次数
     */
    @ApiModelProperty(value = "上课次数")
    private Integer classTimes;

    /**
     * 剩余次数
     */
    @ApiModelProperty(value = "剩余次数")
    private Integer remainingTimes;

    /**
     * 课程状态 0：未完成 1：已完成
     */
    @ApiModelProperty(value = "课程状态 0：未完成 1：已完成")
    private Integer classStatus;

    /**
     * 剩余限制提醒次数
     */
    @ApiModelProperty(value = "剩余限制提醒次数")
    private Integer remindTimes;

    /**
     * 购买时间
     */
    @ApiModelProperty(value = "购买时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date postTime;

    /**
     * 所在班级id
     */
    @ApiModelProperty(value = "所在班级id")
    private Integer purchaseClazzId;
    @Transient
    @IgnoreSwaggerParameter
    private Student student;
    @Transient
    @IgnoreSwaggerParameter
    private Lesson lesson;
    @Transient
    @IgnoreSwaggerParameter
    private Clazz clazz;
    @Transient
    @IgnoreSwaggerParameter
    private Pay pay;

    @Transient
    @ApiModelProperty(value = "课程类型（只读）")
    private String purchaseClazzTypeName;

    @Transient
    @ApiModelProperty(value = "技术类别（只读）")
    private String purchasetechnicalTypeName;

    @Transient
    @ApiModelProperty(value="授课老师名称（只读）")
    private String purchasePeopleTeacherName;

    @Transient
    @ApiModelProperty(value = "主责老师名称（只读）")
    private String purchasePrincipalTeacherName;

    @Transient
    @ApiModelProperty(value="教学主管名称（只读）")
    private String purchaseTeachingDirectorName;

    @Transient
    @ApiModelProperty(value = "医疗主管名称（只读）")
    private String purchaseMedicalDirectorName;
}